package Client;

public class MapProcessor 
{
	private static int X_Upper,X_Lower,Y_Left,Y_Right;
	
	public static int MapProcess(int x,int y)
	{
		for(int i=0;i<MapProcessorConstant.X_RedLine.length;i++)
		{
			X_Upper = MapProcessorConstant.X_RedLine[i] - 7; 
			X_Lower = MapProcessorConstant.X_RedLine[i] + 7;
			Y_Left  = MapProcessorConstant.Y_RedLine[i] - 7;
			Y_Right = MapProcessorConstant.Y_RedLine[i] + 7;
			
			if(x>X_Upper && x< X_Lower)
			{
				if(y>Y_Left && y< Y_Right)
				{
					return i;
				}
			}
		}
		return 0;
		
	}

}
